#ifndef LOGINWIDGET_H
#define LOGINWIDGET_H

#include <QWidget>
#include <QMessageBox>
#include <QStackedLayout>
#include <QStringList>
#include "file.h"
#include "studentwidget.h"
#include "teacherwidget.h"
#include "managerwidget.h"

namespace Ui {
class LoginWidget;
}

class LoginWidget : public QWidget
{
    Q_OBJECT

public:
    explicit LoginWidget(QWidget *parent = nullptr);
    ~LoginWidget();

private:
    LoginWidget *loginwidget;        //登录窗口
    StudentWidget *studentwidget;   //学生窗口
    TeacherWidget *teacherwidget;    //教师窗口
    ManagerWidget *managerwidget;    //管理员窗口
    QStackedLayout *stackLayout;   //QStackedLayout布局
    Ui::LoginWidget *ui;
    QStringList infoLine;
    file *file1;


private slots:
    void on_exitButton_clicked();
   // void Login();
    void on_loginButton_clicked();
   // void RegisterChoose();
    bool check(QString id,QString password);
};

#endif // LOGINWIDGET_H
